﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TianShu.SysParameterSetting.Service.Abstracts.Dto
{
    public class WmsMaterialOfWarehouseImportInput
    {
        ///<summary>
        ///<para>是否虚拟物料</para>
        ///</summary>
        public virtual bool IsVirtual { get; set; }

        ///<summary>
        ///<para>物料编码</para>
        ///</summary>
        public virtual string MaterialCode { get; set; }

        ///<summary>
        ///<para>数量</para>
        ///</summary>
        public virtual decimal Qty { get; set; }

        ///<summary>
        ///<para>生产批次</para>
        ///</summary>
        public virtual string ProductionOrderBatches { get; set; }

        ///<summary>
        ///<para>生产时间</para>
        ///</summary>
        public virtual DateTime? ProductionTime { get; set; }

        ///<summary>
        ///<para>品质【1：合格】【2：不合格】【4：报废】【8：待检】【16：让步合格】</para>
        ///</summary>
        public virtual string Sloc { get; set; }

        ///<summary>
        ///<para>空间名称路径</para>
        ///</summary>
        public virtual string SpaceNamePath { get; set; }

        ///<summary>
        ///<para>有效期</para>
        ///</summary>
        public virtual DateTime? ValidDateTime { get; set; }

        ///<summary>
        ///<para>仓库编码</para>
        ///</summary>
        public virtual string WarehouseCode { get; set; }

    }
    
    /// <summary>
    /// 客户导入
    /// </summary>
    public class ErpCustomerImportInput
    {

        ///<summary>
        ///<para>联系地址</para>
        ///</summary>
        [Required(AllowEmptyStrings =true)]
        [DisplayName("联系地址")]
        public string Address { get; set; }

        ///<summary>
        ///<para>编码</para>
        ///</summary>
        [Required]
        [DisplayName("编码")]
        public string Code { get; set; }

        ///<summary>
        ///<para>联系人</para>
        ///</summary>
        [DisplayName("联系人")]
        public string ContactPerson { get; set; }

        ///<summary>
        ///<para>邮箱</para>
        ///</summary>
        [DisplayName("邮箱")]
        public string Eamil { get; set; }

        ///<summary>
        ///<para>联系传真</para>
        ///</summary>
        [DisplayName("传真")]
        public string Fax { get; set; }

        ///<summary>
        ///<para>名称</para>
        ///</summary>
        [Required]
        [DisplayName("名称")]
        public string Name { get; set; }

        ///<summary>
        ///<para>联系电话</para>
        ///</summary>
        [DisplayName("联系电话")]
        public string PhoneNumber { get; set; }

        ///<summary>
        ///<para>备注</para>
        ///</summary>
        [DisplayName("备注")]
        public string Remark { get; set; }

        ///<summary>
        ///<para>序号</para>
        ///</summary>
        [Required]
        [DisplayName("序号")]
        public int SeqNo { get; set; }

        ///<summary>
        ///<para>真实名称</para>
        ///</summary>
        [DisplayName("真实名称")]
        public string TrueName { get; set; }
    }
}
